package ru.paswd.demo.android.view.presenters

import moxy.MvpPresenter
import ru.paswd.demo.android.view.components.HistoryStorage
import ru.paswd.demo.android.view.ui.views.HistoryView

class HistoryPresenter(
    private val historyStorage: HistoryStorage,
) : MvpPresenter<HistoryView>() {
    fun onInit() {
        val items = historyStorage.get()
        viewState.showHistory(items)
    }
}